import { version1 } from '../src/api';

export default {
  [`GET ${version1}config`]: (req: any, res: any) => {
    res.send({
      data: {
        apps: [
          {
            name: 'bige-frontend', // 唯一 id
            // entry: '//192.168.2.123:2124/index.html', // html entry
            // entry: '/stats-frontend/index.html',
            // entry: '//192.168.2.123:8008',
            entry: '//192.168.2.123:2124',
          },
          {
            name: 'face-library',
            entry: '//192.168.2.123:2125',
          },
        ],
        routes: [
          {
            path: '/bige-frontend',
            microApp: 'bige-frontend',
          },
          {
            path: '/face-library',
            microApp: 'face-library',
          },
        ],
      },
    });
  },
};
